// eslint-disable-next-line
import { UserLayout, BasicLayout, RouteView, BlankLayout, PageView } from '@/layouts'
import { bxAnaalyse } from '@/core/icons'

export const asyncRouterMap = [
  {
    path: '/',
    name: 'index',
    component: BasicLayout,
    meta: { title: '首页' },
    children: [

    ]
  },
  {
    path: '*',
    redirect: '/404',
    hidden: true
  }
]

/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/user',
    component: UserLayout,
    redirect: '/user/login',
    hidden: true,
    children: [
      {
        path: 'login',
        name: 'login',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
      },
      {
        path: 'register',
        name: 'register',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register')
      },
      {
        path: 'register-result',
        name: 'registerResult',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult')
      },
      {
        path: 'recover',
        name: 'recover',
        component: undefined
      }
    ]
  },
  {
    path: '/404',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  },
  {
    path: '/200',
    name: '200',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/result/200')
  },
  {
    path: '/trends',
    name: 'trends',
    meta: {
      title: '羊尖动态'
    },
    component: () => import('@/views/Wechat/trends'),
  },
  {
    path: '/serviceExpress',
    name: 'serviceExpress',
    meta: {
      title: '服务直通车'
    },
    component: () => import('@/views/Wechat/serviceExpress'),
  },
  {
    path: '/village',
    name: 'village',
    meta: {
      title: '村/社区'
    },
    component: () => import('@/views/Wechat/village'),
  },
  {
    path: '/policyDetails',
    name: 'policyDetails',
    meta: {
      title: '政策详情'
    },
    component: () => import('@/views/Wechat/policyDetails'),
  },
  {
    path: '/contentDetails',
    name: 'contentDetails',
    meta: {
      title: '文章详情'
    },
    component: () => import('@/views/Wechat/contentDetails'),
  },
  {
    path: '/engineeringMobile',
    name: 'engineeringMobile',
    meta: {
      title: '锡山区小型零星工程管理'
    },
    component: () => import(/* webpackChunkName: "engineering" */ '@/views/Engineering/EngineeringMobile')
  },
  {
    path: '/engineeringAddMaterialsMobile',
    name: 'engineeringAddMaterialsMobile',
    meta: {
      title: '施工单位补允材料页面'
    },
    component: () => import(/* webpackChunkName: "engineering" */ '@/views/Engineering/EngineeringAddMaterialsMobile')
  },
  {
    path: '/problemInfoMobile',
    name: 'problemInfoMobile',
    meta: {
      title: '工程隐患'
    },
    component: () => import(/* webpackChunkName: "engineering" */ '@/views/Patrol/ProblemInfoMobile')
  }
]
